Readme File for "Nonpartisan Ballots and the Partisanship of Who Serves in Office" by Daniel Butler, Adam Dynes, and Michelle Torres


Below is a brief description of the files used in this paper organized by file type. 

All code was run on a computer with the following operation system:
    macOS Sequoia 15.5
and software versions:
    Stata SE 18.5 for Mac (Apple Silicon), Revision 18 Dec 2024
    RStudio Version 2025.05.1+513 (2025.05.1+513)

DATASETS:

    PublicData-Nonpartisan Ballots.dta
        DESCRIPTION: Municipal level data on every municipality in the US used in the analysis. Data set used to produce Figures 1, A1, A3, and A4 and Tables 2, A2, A3, A5, A6, A7, and A8.

    officials-2017_voterfile-merged_public.csv AND officials-2017_voterfile-merged_public.dta
        DESCRIPTION: Lists every municipal official gathered in summer 2017 along with their title, name, municipality, and quality of match to L2 Voter File. Data set used to produce Figure A2 and Table A4. For a version of this data set that has each officials' estimated partisanship and gender based on their match to the voter file, please contact Adam Dynes.

    Data_Validation_AMOS_public.csv
        DESCRIPTION: Lists variables from 2017 survey of US municipal officials officials and from their match in the L2 voter file. Data set used to produce Table 1.


CODE SCRIPTS:

    Stata:
        Main Analysis File.do
            DESCRIPTION: Stata do file that reproduces Figures 1, A1, A3, and A4 and Tables 2, A2, A3, A5, A6, A7, and A8.

    R:
        Table1.R
            DESCRIPTION: R script that reproduces Table 1.
        TableA4.R
            DESCRIPTION: R script that reproduces Table A4.
        FigureA2.R
            DESCRIPTION: R script that reproduces Figure A2.
